package com.example.mvp.mvppromote.presenter;

import android.content.Context;

import com.example.mvp.mvppromote.R;
import com.example.mvp.mvppromote.base.BasePresenter;
import com.example.mvp.mvppromote.ui.iview.ICustomView;

import java.util.Arrays;

/**
 * Created by wutongyu on 16/7/8.
 */
public class CustomPresenter extends BasePresenter<ICustomView> {
    private ICustomView iCustomView;
    private Context context;
    public CustomPresenter(Context context,ICustomView view) {
        super(view);
        this.iCustomView=view;
        this.context=context;
    }
    public void getData(){
        iCustomView.updateViewList(Arrays.asList(context.getResources().getStringArray(R.array.customview)));
    }

}
